#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
#  line_space.py
#  
#  Copyright 2022 fshuizhe <fshuizhe@qq.com>
#  
#  在行尾加空格，以满足markdown的换行规则
#  
#  

import re
import sys

yuan_wenjian = str(sys.argv[1])

def main(argv):
    f = None
    try:
        f = open(argv, 'r', encoding='utf-8')
        bei_pi_pei = f.readline()
        #pipei = re.sub('
        print(bei_pi_pei)
    except FileNotFoundError:
        print('无法打开指定的文件!')
    except LookupError:
        print('指定了未知的编码!')
    except UnicodeDecodeError:
        print('读取文件时解码错误!')
    finally:
        if f:
            f.close()

if __name__ == '__main__':
	main(yuan_wenjian)
